import request from '@/utils/request'

// 获取设备列表
export const getDevices = (workspaceId) => {
  return request({
    url: `/manage/api/v1/devices/${workspaceId}/devices`,
    method: 'get'
  })
}

// 启动直播流
export const startLiveStream = (live_params) => {
  return request({
    url: '/manage/api/v1/live/streams/start',
    method: 'post',
    data: live_params
  })
} 

// 停止播放
export const stopLiveStream = (data) => {
  return request({
    url: '/manage/api/v1/live/streams/stop',
    method: 'post',
    data
  })
}